package com.itheima.leyou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.leyou.common.dto.PageDTO;
import com.itheima.leyou.po.Spu;
import com.leyou.item.dto.SpecGroupDTO;
import com.leyou.item.dto.SpecParamDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.dto.SpuDetailDTO;

import java.util.List;

public interface SpuService extends IService<Spu> {
    PageDTO<SpuDTO> queryPage(Integer page, Integer rows,  Boolean saleable,Long brandId, Long categoryId, Long id);

    List<SpecGroupDTO> listSpuBySpuId(Long spuid);

    SpuDTO querySpuById(Long id);

    void addSpu(SpuDTO spuDTO);

    void updateSpu(SpuDTO spuDTO);

    void updateUpOrDownSpu(Long id, Boolean saleable);

    SpuDTO queryGoods(Long spuId);

    List<SpecParamDTO> listSpec(Long spuId, Boolean searching);
}
